package com.project.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration//标识该类为配置类
@ComponentScan("com.project")//扫描指定包及子包中的spring相关组件
@EnableAspectJAutoProxy//添加自动代理
public class AopConfig {

}

